home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BCI NET 2
/
BCI NET 2.iso
/
archives
/
applications
/
patch
/
sc655pch.lha
/
amiproc
/
simple.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-01-09
|
287 b
|
23 lines
#include <stdio.h>
#include "amiproc.h"
int func(void *string)
{
printf("%s\n", string);
return 0;
}
int main(void)
{
int rc;
struct AmiProcMsg *apm;
if(apm = AmiProc_Start(func, "This is a test"))
rc = AmiProc_Wait(apm);
else
rc = 20;
return rc;
}